<?php
if (!defined('LEGAL_OPER')){die('Illegal operation');}
header("Content-Type:text/html; charset=utf-8");
/* ȡ�����ڵĸ�Ŀ¼ */
define('ROOT_PATH', str_replace('/sys-admin/includes/admin-init.php', '', str_replace('\\', '/', __FILE__)));
define('ADMIN_PATH', ROOT_PATH . '/sys-admin');

error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
date_default_timezone_set('PRC');

require(ROOT_PATH . '/includes/smarty/Smarty.class.php');
require(ROOT_PATH . '/includes/base.php');
require(ROOT_PATH . '/class/base/BaseDao.class.php');
require(ROOT_PATH . '/class/base/DB.class.php');
require(ROOT_PATH.'/includes/lib_main.php');
require('lib_validate.php');
require('lib_constant.php');

if (!get_magic_quotes_gpc()){
	if (!empty($_GET)){
		$_GET  = addslashes_deep($_GET);
	}
	if (!empty($_POST)){
		$_POST = addslashes_deep($_POST);
	}
	$_COOKIE   = addslashes_deep($_COOKIE);
	$_REQUEST  = addslashes_deep($_REQUEST);
}
$method = '';
if(isset($_GET['met'])){
	$method = $_GET['met'];
}else{
	$method = $_POST['met'];
}
$smarty = new Smarty();
$smarty->template_dir = ROOT_PATH."/sys-admin/template";//ģ��Ŀ¼
$smarty->compile_dir = ROOT_PATH."/sys-admin/template_c";//����Ŀ¼
$smarty->caching = 0;//����������
$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";
?>